package com.ebocy.hammer.game.message;

import com.ebocy.hammer.core.constants.GameMessageCode;
import com.ebocy.hammer.core.message.AbstractC2SMessage;

public class C2SPlayerRole extends AbstractC2SMessage {
	//用户选择形象id
	private short roleId;

	public short getRoleId() {
		return roleId;
	}

	@Override
	public short getMessageCode() {
		return GameMessageCode.GAME_CHANGE_ROLE;
	}

	@Override
	public void readMessage() {
		roleId=readShort();
	}
}
